<div class="box box-info">
    <div class="box-header with-border">
        <h3 class="box-title"><a href="{:url('power/member')}" title="管理员列表"> 返回列表</a></h3>
    </div>

    <form class="form-horizontal" action="{:url('power/editMember',['id' => $info->id])}" method="post">
        <div class="box-body">
            <div class="form-group">
                <label for="username" class="col-sm-2 control-label">姓名</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control" id="username" name='username' value='{$info->username??""}' placeholder="管理员姓名" required >
                </div>
            </div>
            <div class="form-group">
                <label for="inputPassword3" class="col-sm-2 control-label">登录密码</label>
                <div class="col-sm-3">
                    <input type="password" class="form-control" id="inputPassword3" name="password" placeholder="登录密码">
                </div>
            </div>

            <!--div class="form-group">
                <label for="nickname" class="col-sm-2 control-label">真实姓名</label>
                <div class="col-sm-3">
                    <input type="text" class="form-control" id="nickname" name="nickname" value='{$info->nickname??""}' placeholder="真实姓名" required>
                </div>
            </div-->

            <div class="form-group">
                <label for="email" class="col-sm-2 control-label">邮箱地址</label>
                <div class="col-sm-3">
                    <input type="email" class="form-control" id="email" name="email" value='{$info->email??""}' placeholder="邮箱地址" required />
                </div>
            </div>

            <div class="form-group">
                <label for="role" class="col-sm-2 control-label">角色名称</label>
                <div class="col-sm-3">
                    <select class="form-control" id ='role' name="roleid" required>
                        <option value="">选择角色</option>
                        {volist name="role" id="vo"}
                        <option value="{$key}" {eq name="$key" value="$info.roleid"}selected="selected"{/eq}>{$vo}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="status" class="col-sm-2 control-label">角色状态</label>
                <div class="col-sm-3">
                    <select class="form-control" id ='status' name="status" required>
                        <option value="">选择状态</option>
                        {volist name="adminStatus" id="vo"}
                        <option value="{$key}" {eq name="$key" value="$info.status"}selected="selected"{/eq}>{$vo}</option>
                        {/volist}
                    </select>
                </div>
            </div>

            <hr/>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-primary">提交</button>
                </div>
            </div>
        </div>
    </form>
</div>